﻿<%@ Page Language="C#" MasterPageFile="~/page/MasterPage.master" AutoEventWireup="true" CodeFile="PreliminaryApply.aspx.cs" Inherits="PreliminaryApply" Title="易居臣信二手房管理系统——贷款预审"%>

<asp:Content ID="Content2" ContentPlaceHolderID="main" Runat="Server">
<link href="../../css/ContractInfo.css" rel="stylesheet" type="text/css" />
<script src="../../js/Chenxin/udefine/Chenxin.UI.AddPageCommon.js" type="text/javascript"></script>
<script src="../../js/App/PreliminaryApply.js" type="text/javascript"></script>
<div class="sidebar2"></div>
<!--导航-->
<div class="listpahlinks">
    <span>
        <a href="#">系统首页</a>
    </span>
    <span> > </span>
    <span><a href="#">贷款预审</a></span>
</div>
<div id="PreliminaryApply_form">
    <div style="padding-top:5px;">
        <input type="hidden" id="hidRecordId" name="RecordId" />
        <h2>房源信息</h2>
    </div>
    <table width='100%' border='0' cellspacing='0' cellpadding='0' class='tabsorternew' id="tbHouse">
        <tbody>
            <tr>
                <td style="text-align:right; width:92px;">
                    房源编号<span class="isfilled">*</span>
                </td>
                <td colspan = '3'>
                    <input type="hidden" name="HouseId" id="hidHouseId" />
                    <input type="text" id="txtHouseCode" name="HouseCode" class="inputbox_n fl" style="width:160px" readonly="readonly"/>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width: 92px;">
                    房源地址<span class="isfilled">*</span>
                </td>
                <td colspan = '3'>
                    <input type="text" id="txtAddress"  name="Address" class="inputbox_n fl" style="width:467px" />
                    <div id="txtAddressTip" style="float: left; margin-left: 5px; width: 121px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width: 92px;">
                    建筑面积<span class="isfilled">*</span>
                </td>
                <td style="width:310px">
                    <input type="text" id="txtBuildingArea" name="BuildingArea" class="inputbox_n fl" style="width:150px" />
                    <div id="txtBuildingAreaTip" style="float: left; margin-left: 5px; width: 121px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
                <td style="text-align:right;width:90px;">
                    建筑类型<span class="isfilled">*</span>
                </td>
                <td>
                    <div id="BuildingType" style="z-index:4; margin-right: 2px;" class="SelectWrapSingle"></div>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width: 92px;">
                    总楼层<span class="isfilled">*</span>
                </td>
                <td>
                    <input type="text" id="txtTotal_Floor" name="Total_Floor" class="inputbox_n fl" style="width:150px" />
                    <div id="txtTotal_FloorTip" style="float: left; margin-left: 5px; width: 121px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
                <td style="text-align:right;">
                    竣工日期<span class="isfilled">*</span>
                </td>
                <td>
                    <div id="CompleteYear" style="z-index:3; margin-right: 2px;" class="SelectWrapSingle"></div>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width: 92px;">
                    所属门店<span class="isfilled">*</span>
                </td>
                <td>
                    <input type="hidden" id="txtEmpCompanyId" name="EmpCompanyId" />
                    <input type="hidden" id="txtEmpCompanyName" name="EmpCompanyName" />
                    <input type="hidden" id="txtEmpDepartId" name="EmpDepartId" />
                    <input type="text" id="txtEmpDepartName" name="EmpDepartName" class="inputbox_n fl" style="width:150px" disabled="disabled"/>
                </td>
                <td style="text-align:right;">
                    所属业务员<span class="isfilled">*</span>
                </td>
                <td>
                    <input type="hidden" id="txtEmployeeId" name="EmployeeId" />
                    <input type="text" id="txtEmployeeName" name="EmployeeName" class="inputbox_n fl" style="width:150px" disabled="disabled"/>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width: 92px;">
                    联系电话<span class="isfilled">*</span>
                </td>
                <td>
                    <input type="text" id="txtEmpPhone" name="EmpPhone" class="inputbox_n fl" style="width:150px" />
                    <div id="txtEmpPhoneTip" style="float: left; margin-left: 5px; width: 121px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
                <td style="text-align:right;">
                    成交总价<span class="isfilled">*</span>
                </td>
                <td>
                    <input type="hidden" id="txtSalePrice_U" name="SalePrice_U" />
                    <input type="text" id="txtSalePrice_T" name="SalePrice_T" class="inputbox_n fl" style="width:150px;ime-mode:disabled;" /> 
                    <div id="txtSalePrice_TTip" style="float: left; margin-left: 5px; width: 120px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
            </tr>
        </tbody>
    </table>
    <div style="padding-top:10px;">
        <h2>预审申请信息</h2>
    </div>
    <table width='100%' border='0' cellspacing='0' cellpadding='0' class='tabsorternew' id="tbPre">
        <tbody>
            <tr>
                <td style="text-align:right; width:87px;">
                        申请部门<span class="isfilled">*</span>
                </td>
                <td style="width: 300px">
                    <input type=text id="AppDepartId"   class="inputbox_n fl" style="width:150px" />
                    <%--<div id="AppDepartId" style="z-index:8; margin-right: 2px;" class="SelectWrapSingle"></div>--%>
                </td>
                <td style="text-align:right; width:85px;">
                        申请人员<span class="isfilled">*</span>
                </td>
                <td>
                    <input type="text" id="txtAppEmployeeId" name="AppEmployeeId" class="inputbox_n fl" style="width:150px" />
                    <div id="txtAppEmployeeIdTip" style="float: left; margin-left: 5px; width: 120px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
            </tr>
            <tr>
                <td style="text-align:right; width: 87px;">
                        贷款类型<span class="isfilled">*</span>
                </td>
                <td style="width: 300px">
                    <div id="LoanInfo" style="z-index:7; margin-right: 2px;" class="SelectWrapSingle"></div>
                </td>
                <td style="text-align:right; width: 85px;">
                        贷款总额<span class="isfilled">*</span>
                </td>
                <td style="width: 300px">
                    <input id="txtLoanTotalMoney" type="text" name="LoanTotalMoney" class="inputbox_n fl"  style="width:150px;ime-mode:disabled;"/>
                    <div id="txtLoanTotalMoneyTip" style="float: left; margin-left: 5px; width: 120px; height: 26px; line-height: 26px; text-align: left;" class="fl"></div>
                </td>
            </tr>
            <%--<tr>
                <td style="text-align:right; width: 87px;">
                        预审机构<span class="isfilled">*</span>
                </td>
                <td style="width: 300px"colspan = '3'>
                    <div id="PreliminaryCityId" style="z-index:2; margin-right: 2px;" class="SelectWrapSingle"></div>
                    <div id="PreliminaryCompanyId" style="z-index:2; margin-right: 2px;" class="SelectWrapSingle"></div>
                    <div id="PreliminaryDepartId" style="z-index:2; margin-right: 2px;" class="SelectWrapSingle"></div>
                </td>
            </tr>--%>
        </tbody>
    </table>
    <div style="padding-top:15px;z-index:1">
        <h2>贷款人信息</h2>
    </div>
    <div class="searchtab" id='preBuyerInfo'style="z-index:1">
        <div style="float:left; width:99%; padding:1px 0px;position:relative; z-index:1;">
            <table id="tbBuyer" width='100%' border='0' cellspacing='0' cellpadding='0' class='tabsorternew'>
                <thead>
                    <tr>
                        <td colspan="8">
                            <span>&nbsp;&nbsp;&nbsp;是否已婚</span>
                            <input type="checkbox" id="Married" name="Married"/>
                        </td>
                    </tr>
                    <tr>
                        <th style="text-align:center;width:78px">是否主贷人</th>
                        <th style="text-align:center;width:75px; height:25px;">姓名</th>
                        <th style="text-align:center;width:135px">身份证</th>
                        <th style="text-align:center;width:110px">公积金账号</th>
                        <th style="text-align:center;width:75px">配偶姓名</th>
                        <th style="text-align:center;width:135px">配偶身份证</th>
                        <th style="text-align:center;width:110px">公积金账号</th>
                        <th style="text-align:center;width:61px">删除</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="text-align:center; width: 78px;">
                            <input type="radio" name="BOwner" checked="checked"/>
                        </td>
                        <td style="text-align:center;width: 75px;">
                            <input type="text" name="CustomerName" class="inputbox_n fl" style="width:55px"/>
                        </td>
                        <td style="text-align:center;width: 135px;">
                            <input type="text" name="IDNum" class="inputbox_n fl" style="width:100px"/>
                        </td>
                        <td style="text-align:center;">
                            <input type="text" name="GJJNum" class="inputbox_n fl" style="width:70px" />
                        </td>
                        <td style="text-align:center;width: 75px;">
                            <input type="text" name="SpousesName" class="inputbox_n fl" style="width:55px" />
                        </td>
                        <td style="text-align:center;width: 135px;">
                            <input type="text" name="SpousesIDNum" class="inputbox_n fl" style="width:110px"/>
                        </td>
                        <td style="text-align:center;">
                            <input type="text" name="SpousesGJJNum" class="inputbox_n fl" style="width:70px" />
                        </td>
                        <td style="text-align:center;width: 61px;">
                            <a href="javascript:void(0)" name="aDelBuyer" >删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="8">
                            <div class='btn btn5 fr'>
                                <a href='#' title='导入报备客户' id='aLoadBuyer'>
                                    <span>导入报备客户</span>
                                </a>
                            </div>
                            <div class='btn btn1 fr'>
                                <a href='#' title='添加' id='aAddBuyer'>
                                    <span>添&nbsp;加</span>
                                </a>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div style="float:left; width:99%; padding:1px 0px;position:relative; z-index:1;">
            <table width='100%' border='0' cellspacing='0' cellpadding='0' class='tabsorternew'>
                <tbody>
                    <tr>
                        <td style="text-align:center;">特殊情况说明</td>
                        <td style="width:700px; height :70px;">
                            <textarea id="SpecialExp" name="SpecialExp" cols="80" rows="2" style="width: 100%; height: 65px;"></textarea>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div style="padding-top:20px;">
        <h2>预审其他信息</h2>
    </div>
    <div class="searchtab" id='PreliminaryOtherInfo'>
        <table id="tbOther" width='100%' border='0' cellspacing='0' cellpadding='0' class='tabsorternew'>
            <tbody>
                <tr>
                    <td style="text-align:center;width:91px;">收件收据放款</td>
                    <td style="text-align:center;width:117px;">
                        <input type="radio" value="false" name="Receipt" checked="checked"/>否
                        <input type="radio" value="true" name="Receipt"/>是
                    </td>
                    <td style="text-align:center;width:80px;">转按揭</td>
                    <td style="text-align:center;width:141px;">
                        <input type="radio" value="false" name="Mortgage" checked="checked"/>否
                        <input type="radio" value="true" name="Mortgage"/>是
                    </td>
                    <td style="text-align:center;width:89px;">贷款是否一年</td>
                    <td style="text-align:center;width:110px;" colspan='3'>
                        <input type="radio" value="false" name="IsOneYear" checked="checked"/>否
                        <input type="radio" value="true" name="IsOneYear"/>是
                    </td>
                </tr>
                <tr id="tr_showReceipt" style="display:none;">
                    <td style="text-align:center;width:91px;">上家姓名</td>
                    <td style="width:117px;">
                        <input id="txtSaleName" type="text" name="SaleName" class="inputbox_n fl" 
                            style="width:100px;"/>
                    </td>
                    <td style="text-align:center;width:70px;">上家身份证</td>
                    <td style="width:141px;">
                        <input id="txtSaleIDCard" type="text" name="SaleIDCard" class="inputbox_n fl" style="width:127px;"/>
                    </td>
                    <td style="text-align:center;width:89px;">配偶姓名</td>
                    <td style="width:113px;">
                        <input id="txtSaletSpouseeName" type="text" name="SaleSpouseeName" 
                            class="inputbox_n fl" style="width:100px;"/>
                    </td>
                    <td style="text-align:center;width:73px;">配偶身份证</td>
                    <td style="width:145px;">
                        <input id="txtSaleSpouseeIDCard" type="text" name="SaleSpouseeIDCard" 
                            class="inputbox_n fl" style="width:127px;"/>
                    </td>
                </tr>
                <tr id="tr_showMortgage" style="display:none;">
                    <td style="text-align:center;width:89px;">剩余贷款金额</td>
                    <td style="width:117px;">
                        <input id="txtOldRestMoney" type="text" name="OldRestMoney" 
                            class="inputbox_n fl" style="width:100px;ime-mode:disabled;"/>
                    </td>
                    <td style="text-align:center;width:70px;">原贷款金额</td>
                    <td style="width:141px;">
                        <input id="txtOldLoanMoney" type="text" name="OldLoanMoney" 
                            class="inputbox_n fl" style="width:127px;ime-mode:disabled;"/>
                    </td>
                    <td style="text-align:center;width:91px;">原贷款银行</td>
                    <td style="width:103px;" colspan='3'>
                        <div id="OldLoanBank" style="z-index:900; margin-right: 2px;" class="SelectWrapSingle"></div>
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="float:left; width:99%; padding:1px 0px;position:relative; z-index:1; display:none;" id="div_showRemark" >
            <ul>
                <li style="text-align:center;width:80px;">备注</li>
                <li style="width:700px; height :70px;">
                    <textarea id="txtRemark" name="Remark" cols="80" rows="2"
                        style="width: 100%; height: 66px;"></textarea>
                </li>
            </ul>
        </div>
        <div style="float:left; width:99%; padding:1px 0px;position:relative; z-index:1;">
            <table id="tbSaler" width='100%' border='0' cellspacing='0' cellpadding='0' class='tabsorternew'>
                <thead>
                    <tr>
                        <th style="text-align:center;width:332px;">共有人姓名</th>
                        <th style="text-align:center;width:365px">共有人身份证</th>
                        <th style="width:57px;text-align:center;">删除</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td style="width: 362px">
                            <input id="txtSaleNamePublic" type="text" name="SaleNamePublic" 
                                class="inputbox_n fl" style="width:342px;"/>
                        </td>
                        <td style="width: 395px">
                            <input id="txtSaleIDCardPublic" type="text" name="SaleIDCardPublic" 
                                class="inputbox_n fl" style="width:373px;"/>
                        </td>
                        <td style="width: 57px">
                            <a href="javascript:void(0)" name="aDelSaler">&nbsp;&nbsp;&nbsp;&nbsp;删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="8">
                            <div class='btn btn5 fr'>
                                <a href='#' title='导入报备客户' id='aLoadSaler'>
                                    <span>导入报备客户</span>
                                </a>
                            </div>
                            <div class='btn btn1 fr'>
                                <a href='#' title='添加' id='aAddSaler'>
                                    <span>添&nbsp;加</span>
                                </a>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class='btn btn1'><a href='#' title='提交' id='aSubmit'><span>提&nbsp;交</span></a></div>
    <div class='btn btn5'><a href='#' title='返回预审管理' id='aClose'><span>返回预审管理</span></a></div>
</div>
<!--初始数据区-->
<asp:HiddenField ID="hidHouseInfo" Runat="Server" />
<asp:HiddenField ID="hidPreBuyerInfo" Runat="Server" />
<asp:HiddenField ID="hidPreSalerInfo" Runat="Server" />
<asp:HiddenField ID="hidPreliminaryInfo" Runat="Server" />
<asp:HiddenField ID="hidLoadBuyer" Runat="Server" />
<asp:HiddenField ID="hidLoadSaler" Runat="Server" />
<asp:HiddenField ID="hidAppDepart" Runat="Server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="foot" Runat="Server">
</asp:Content>